package com.cxmx.escort.aspect.core;


import com.cxmx.escort.aspect.api.ProtocolApi;

public class RedWineExaminationData {
    public final String label;
    public final float confidenceScore;
    public final ProtocolApi.GraphInfo[] graphs;

    public RedWineExaminationData(String label, float confidenceScore, ProtocolApi.GraphInfo[] graphs) {
        this.label = label;
        this.confidenceScore = confidenceScore;
        this.graphs = graphs;
    }

    @Override
    public String toString() {
        StringBuilder graphStrBuilder = new StringBuilder();
        for (int i = 0; i < graphs.length; i++) {
            graphStrBuilder.append(graphs[i].toString());
            graphStrBuilder.append(",\n");
        }
        return String.format("label: %s, confidence score: %f\ngraphs:\n%s", label, confidenceScore, graphStrBuilder.toString());
    }
}
